<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    console.log('浏览器品牌', navigator.appName);
    console.log('浏览器版本', navigator.appVersion);
    console.log('用户代理', navigator.userAgent);
    console.log('操作系统', navigator.platform);
    console.log(location.href);
    console.log(location.protocol);
    console.log(location.host);
    console.log(location.pathname);
    console.log(location.hostname);
    console.log(location.search);
    console.log(screen.width);
    console.log(screen.height);
    console.log(history.back());
    console.log(history.forward());
  </script>
</body>

</html>